package com.pkk.penguin.frame.know.java.driven.ext.processors;

import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * 主测试类
 *
 * @author peikunkun
 * @version V1.0
 * @date 2020-11-14 17:58
 **/
@ComponentScan(basePackages = "com.pkk.penguin.frame.know.java.driven.ext.processors")
public class ProcessorsManinTests {

  //执行记数
  private static AtomicInteger count = new AtomicInteger(0);


  @Test
  public void Administrator_20_20201120174538_() {
    System.out.println("欢迎使用单元测试方法【Administrator_20()_20201120174538】");
    System.out.println("此方法测试描述：【几个重要的后置处理器与初始化执行顺序的执行过程】");

    AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(
        ProcessorsManinTests.class);

    applicationContext.close();
  }


  public static final void printi(final String msg) {
    System.out.println("\n【第" + count.getAndIncrement() + "次】打印-信息【\n".concat(msg).concat("】"));
  }

}
